﻿using System;
using System.Collections.ObjectModel;

using Sunyi.Project.WebPoint.DataContract;

namespace Sunyi.Project.WebPoint.DataAccessController
{
    public partial class AuditLogDaoController
    {
        public int SearchCount(string operationCode, string source, string category, string userName, DateTime insertTimestamp)
        {
            return dao.SearchCount(operationCode, source, category, userName, insertTimestamp);
        }

        public Collection<AuditLog> Search(string operationCode, string source, string category, string userName, DateTime insertTimestamp, int pageIndex, int pageSize)
        {
            return dao.Search(operationCode, source, category, userName, insertTimestamp, pageIndex, pageSize);
        }

        public void DeleteAll()
        {
            dao.DeleteAll();
        }
    }
}
